//
//  Qb_PushViewController.m
//  Cd_Qb
//
//  Created by mac on 2018/3/8.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "Qb_PushViewController.h"
#import "Qb_QRCodeViewController.h"
#import "Qb_PushFacingEachOtherViewController.h"
@interface Qb_PushViewController ()
//假导航栏
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushNavH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushNavLabelBottom;
//第一个View
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewTop;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewBtnLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewBtnH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewBtnW;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewLabelLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewImgRight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewImgH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushOneViewImgW;
//第二个View
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewBtnLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewBtnH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewBtnW;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewLabelLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewImgRight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewImgH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushTwoViewImgW;
//第三个View
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewBtnLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewBtnH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewBtnW;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewLabelLeft;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewImgRight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewImgH;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *Qb_PushThreeViewImgW;

@end

@implementation Qb_PushViewController

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
    self.tabBarController.tabBar.hidden = NO;
}


- (void)viewDidLoad {
    [super viewDidLoad];
    [self AdaptationApp];
    kDevice_Is_iPhoneX?(self.Qb_PushNavH.constant = 88):(self.Qb_PushNavH.constant = 64);
}



- (IBAction)OnPushBtnClick:(UIButton *)sender {
    if (sender.tag == 1001)
    {
        NSLog(@"分享二维码");
        Qb_QRCodeViewController * con = (Qb_QRCodeViewController*)Storyboard(@"QRCodeView", @"QRCodeView");
        con.hidesBottomBarWhenPushed = YES;
        [self.navigationController pushViewController:con animated:YES];
    }
    if (sender.tag == 1002)
    {
        NSLog(@"分享链接");
        
        
    }
    if (sender.tag == 1003)
    {
        NSLog(@"面对面");
        Qb_PushFacingEachOtherViewController * con = (Qb_PushFacingEachOtherViewController*)Storyboard(@"PushFacingEachOther", @"PushFacingEachOther");
        con.hidesBottomBarWhenPushed = YES;
        [self.navigationController pushViewController:con animated:YES];
    }
    
    
}


@end

